SOURCES= ../__init__.py ../all.py ../alpha.py ../disjoint_set.py 
SOURCES+= ../morphism.py ../paths.py ../suffix_trees.py ../utils.py
SOURCES+= ../word.py ../words.py ../word_content.py ../word_generators.py
VERS=0.2

pkg:
	rm -rf words-$(VERS)
	mkdir -p words-$(VERS)/src
	cp $(SOURCES) words-$(VERS)/src
	cp spkg-install words-$(VERS)
	@echo "If the next command does not work, set SAGE_ROOT to the"
	@echo "appropriate value or run sage -pkg words-$(VERS) manually"
	$(SAGE_ROOT)/sage -pkg words-$(VERS)

clean:
	rm -rf words-$(VERS)
	rm -rf words-$(VERS).spkg
